package com.lantu.wisdom.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zch
 * @since 2021-06-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("w_question")
public class WQuestion extends Model<WQuestion> {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("question")
    private String question;

    @TableField("type_code")
    private String typeCode;

    @TableField("name")
    private String name;

    @TableField("phone")
    private String phone;


    @TableField("user_id")
    private  String userId;

    /**
     * 1 待审核 2 审核通过 3审核不通过
     */
    @TableField("state")
    private Integer state;

    @TableField("deleted")
    private Integer deleted;

    /**
     * 1 未回复  2 已回复
     */
    @TableField("reply")
    private Integer reply;

    @TableField("create_time")
    private Long createTime;

    @TableField("update_time")
    private Long updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
